from microblog.app import app, db
from microblog.setting import Config 
from microblog.app.models import User, Post, Follow

@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Post': Post, 'Follow': Follow}


if __name__ == "__main__":
    app.run(host=Config.API_HOST, port=Config.API_PORT, threaded=Config.API_THREADED)


